# Contributor: Mathias LANG <pro.mathias.lang@gmail.com>
# Maintainer: Mathias LANG <pro.mathias.lang@gmail.com>
pkgname=gdmd
pkgver=0.1.0
pkgrel=0
pkgdesc="Wrapper providing DMD-like CLI interface to gdc"
url="https://github.com/D-Programming-GDC/gdmd"
# GDC does not support PPC64le
arch="all !ppc64le !riscv64"
license="GPL-3.0-or-later"
depends="perl gcc-gdc"
# It's a script, and needs to be installed to be tested
# Additionally, there's no test suite for it, however
options="!check"
source="$pkgname-$pkgver.zip::https://github.com/D-Programming-GDC/gdmd/archive/script-$pkgver.zip"
builddir="$srcdir/gdmd-script-$pkgver/"

package() {
	# gdmd needs to be in the same directory as GDC
	install -D "dmd-script" "$pkgdir/usr/bin/gdmd"
}

sha512sums="bbba4f2de7acd19d366eafd382b59fb3384b3d65562ffb1309626b1184b7cbfd882a06200eb583ad28df7fcb370f819acf4b9b195f47f33939356f2839bb8020  gdmd-0.1.0.zip"
